<?php

class Categories extends Model {
    var $name = 'Categories';

    function category_name_sanitize($category_name) {
        add_filter('title_save_pre', 'wp_filter_kses');
        return apply_filters('title_save_pre', $category_name);
    }
    
    function category_slug_sanitize($slug) {
        return preg_replace('/[^0-9a-z-_]/', '', $slug);
    }
}
?>
